﻿package com.quickdev.intelligenthome.utils
{
	import flash.utils.ByteArray;

	public class CRC
	{
		protected var crc :uint;
		protected var crcTable :Array;
		
		public function CRC()
		{
			initCRCTable();
			reset();
		}
		
		protected function initCRCTable() :void {
			
		}
		
		public function update(buffer :ByteArray, offset :uint = 0, length :int = -1) :void {
		}
		
		public function reset() :void {
			crc = 0;
		}
		
		public function getValue() :uint {
			return crc & 0xFFFFFFFF;
		}
	}
}